<{Tinclude "commom/admin_header"}>
 <section id="container" >


      <!--顶部-->
      <{Tinclude"commom/admin_inner_header"}>
      <!--顶部-->
      
       <{Tinclude"commom/admin_left_menu"}>
       
       <section id="main-content">
          <section class="wrapper">
          	<h3><i class="<{if $___menuinfo["iconclass"]}><{$___menuinfo["iconclass"]}><{else}>fa fa-list-ul<{/if}>"></i><{$___menuinfo["base_name"]}></h3>
                <div class="row mt">
                    <div class="col-md-12">
                       <div class="form-panel">  
                           
                           
                           <div class='col-md-6'>
                               <a class='btn btn-default btn-sm' href="<{echo Common::RewriteUrl("Role","roleadd");}>"><span class="fa fa-user"></span>添加</a>
                               
                           </div>  
                           
                           <div class="col-md-6 text-right">
                                   
                                 
                                   
                                   
                               </div>
                           <div class='clearfix'></div>
                           <div class='margin_top20'></div>
                           <div class="col-lg-12">
                           <div class="row">
                               
                              
                                 <section id="no-more-tables">                   
  <table class="table table-striped table-condensed table-hover cf">
      <thead class="cf">
        <tr>
          <th>角色名</th>
          <th>角色描述</th>
          <th>状态</th> 
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
          <{if isset($list)&&$list}>
          <{foreach $list as $item}>
          <tr>
              <td data-title="角色名" class="jphidden-phone"><{$item["rolename"]}></td>
              <td data-title="角色描述"><{$item["desc"]}></td>
              <td data-title="状态"><{if $item["disabled"]==1}>启用<{else}>禁用<{/if}></td>
              <td data-title="操作">
                  <div class="btn-group">  
                      <a class="btn btn-primary btn-xs" href="<{echo Common::RewriteUrl("Role","roleedit","&id=".$item["id"]);}>" ><span class="glyphicon glyphicon-edit"></span></a><a class="btn btn-danger btn-xs jppdelete" href="javascript:void(0);" data-href="<{echo Common::RewriteUrl("Role","roledelete","&id=".$item["id"]);}>"><span class="glyphicon glyphicon-trash"></span></a>
              </div>
              </td>
          </tr>
          <{/foreach}>
          <{/if}>
      </tbody>
  </table>
                                 </section>
                              
                          <div class="col-md-12 text-center">
                           <?php Temp::Tinclude("commom/pager");?>
                           </div>
                     
                               
                               
                           </div>
                           </div>
                           <div class="clearfix"></div>
                           
                           
 
                           
                           
                           
                       </div>
                    </div>
                </div>
          </section>
       </section>
 </section>
<script>
    $(document).ready(function(){
        $(".jppdelete").click(function(){
            var href=$(this).data("href");
            if(window.confirm("确定要删除吗?")){
                window.location.href=href;
            }
        });
    });
</script>
<{Tinclude"commom/admin_footer"}>